package com.tarzan.common.core.base;

/**
 * @author liujinshan
 * @title: Pagination
 * @projectName tarzan-cloud
 * @description: TODO 分页相关信息 默认设置当前页为1 每页数据大小为10
 * @date 2021-5-17 21:16
 */
public class Pagination {
    private final static int DEFAULT_PAGE_SIZE = 10;
    private final static  int DEFAULT_CURRENTPAGE = 1;

    /**
     * 当前页
     */
    private long currentPage;

    /**
     * 每页默认10条数据
     */
    private long pageSize;

    /**
     * 总记录
     */
    private long total;



    public Pagination() {
        this.pageSize = DEFAULT_PAGE_SIZE;
        this.currentPage = DEFAULT_CURRENTPAGE;
    }


    public long getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(long currentPage) {
        this.currentPage = currentPage;
    }

    public long getPageSize() {
        return pageSize;
    }

    public void setPageSize(long pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}
